home *** CD-ROM | disk | FTP | other *** search
- # TEST.S
-
- .align 2
- start:
- nop
- nop
- movl %cr0,%eax
- movl %cr2,%eax
- movl %cr3,%eax
- movb $1,%al
- movw $1,%ax
- movl $1,%eax
- movl (%ebx),%eax
- movl 2(%ebx,%esi,1),%eax
- movl %edx,0x2000(%ebx,%esi,1)
- call subr
- ja lret
- jmp start
- lret: ret
-
- subr: movl 0x11111111,%eax
- movl %ebx,%eax
- imull $3,%edx,%eax
- rorl $1,%eax
- shrl $8,%eax
- shll %cl,%eax
- addl $-1,%eax
- ljmp $0x11,$0x22334455
- .byte 0x9a,0x00,0x11,0x22,0x33,0x44,0x55
- lfs 0x20(%edx,%edi,2),%eax
- btr %eax,(%esi,%ebx)
- bt $3,%eax
- ret
- nop
- nop
-